package com.atshanggui;

import jakarta.servlet.*;
import jakarta.servlet.annotation.WebServlet;

import javax.xml.transform.Result;
import java.io.IOException;

@WebServlet("/hello")
public class servlet1 implements Servlet {
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {

    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        servletResponse.getWriter().write("hello world");
    }

    @Override
    public String getServletInfo() {
        return "";
    }

    @Override
    public void destroy() {

    }
}
